module.exports = {
  devServer: {
    port: 8081,
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true
      }
    },
    // 关键配置：关闭错误覆盖层，防止显示崩溃页面
    client: {
      overlay: false  // 完全关闭错误覆盖层
    }
  },
  productionSourceMap: false,
  // 关闭性能提示
  configureWebpack: {
    performance: {
      hints: false
    }
  }
}

